LinuxQMISDK-Lite  SLQS04.00.27
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
MbimInternal.h
Go to the documentation of this file.
1 #ifndef __MBIM_INTERNAL_H__
2 #define __MBIM_INTERNAL_H__
3 
4 #include <stdint.h>
5 #include "MbimTransport.h"
6 
7 // MBIM MESSAGE TYPE IDs
8 #define MBIM_OPEN 0x1
9 #define MBIM_OPEN_DONE 0x80000001
10 #define MBIM_CLOSE 0x2
11 #define MBIM_CLOSE_DONE 0x80000002
12 #define MBIM_COMMAND 0x3
13 #define MBIM_COMMAND_DONE 0x80000003
14 #define MBIM_HOST_ERROR 0x4
15 #define MBIM_FUNCTION_ERROR 0x80000004
16 #define MBIM_INDICATE_STATUS 0x80000007
17 
18 
19 #pragma pack(push, 1)
20 
21 typedef struct MBIM_MESSAGE_HEADER
22 {
23  uint32_t MessageType;
24  uint32_t MessageLength;
25  uint32_t TransactionId;
27 
28 typedef struct MBIM_FRAGMENT_HEADER
29 {
30  uint32_t TotalFragments;
31  uint32_t CurrentFragment;
33 
34 typedef struct MBIM_OPEN_MSG
35 {
39 
40 typedef struct MBIM_OPEN_DONE_MSG
41 {
43  uint32_t Status; // MBIM STATUS CODE
45 
46 typedef struct MBIM_CLOSE_MSG
47 {
50 
51 typedef struct MBIM_CLOSE_DONE_MSG
52 {
54  uint32_t Status; // MBIM STATUS CODE
56 
57 typedef struct MBIM_COMMAND_MSG
58 {
62  uint32_t CID;
63  uint32_t CommandType; // 0 for a query operation, 1 for a Set operation.
66 
67 typedef struct MBIM_COMMAND_DONE_MSG
68 {
72  uint32_t CID;
73  uint32_t Status; // MBIM STATUS CODE
76 
78 {
82  uint32_t CID;
85 
86 typedef struct MBIM_FRAGMENT_MSG
87 {
91 
92 
93 #pragma pack(pop)
94 
95 #endif //__MBIM_INTERNAL_H__
struct MBIM_FRAGMENT_MSG MBIM_FRAGMENT_MSG
Definition: MbimInternal.h:40
struct MBIM_CLOSE_MSG MBIM_CLOSE_MSG
Definition: MbimInternal.h:34
Definition: MbimInternal.h:57
#define MBIM_UUID_SIZE
Definition: MbimTransport.h:20
Definition: MbimInternal.h:67
uint32_t MessageLength
Definition: MbimInternal.h:24
struct MBIM_OPEN_DONE_MSG MBIM_OPEN_DONE_MSG
uint8_t DeviceServiceId[16]
Definition: MbimInternal.h:61
struct MBIM_FRAGMENT_HEADER MBIM_FRAGMENT_HEADER
uint32_t CurrentFragment
Definition: MbimInternal.h:31
uint32_t InformationBufferLength
Definition: MbimInternal.h:83
uint32_t CID
Definition: MbimInternal.h:62
uint32_t TransactionId
Definition: MbimInternal.h:25
uint32_t InformationBufferLength
Definition: MbimInternal.h:64
uint32_t CID
Definition: MbimInternal.h:82
uint32_t MessageType
Definition: MbimInternal.h:23
MBIM_MESSAGE_HEADER MessageHeader
Definition: MbimInternal.h:48
uint32_t CID
Definition: MbimInternal.h:72
Definition: MbimInternal.h:51
uint32_t TotalFragments
Definition: MbimInternal.h:30
MBIM_MESSAGE_HEADER MessageHeader
Definition: MbimInternal.h:42
uint8_t DeviceServiceId[16]
Definition: MbimInternal.h:71
uint32_t Status
Definition: MbimInternal.h:54
MBIM_MESSAGE_HEADER MessageHeader
Definition: MbimInternal.h:53
uint32_t Status
Definition: MbimInternal.h:43
uint32_t Status
Definition: MbimInternal.h:73
MBIM_MESSAGE_HEADER MessageHeader
Definition: MbimInternal.h:69
struct MBIM_OPEN_MSG MBIM_OPEN_MSG
uint8_t DeviceServiceId[16]
Definition: MbimInternal.h:81
Definition: MbimInternal.h:21
uint32_t InformationBufferLength
Definition: MbimInternal.h:74
MBIM_MESSAGE_HEADER MessageHeader
Definition: MbimInternal.h:88
MBIM_MESSAGE_HEADER MessageHeader
Definition: MbimInternal.h:36
MBIM_FRAGMENT_HEADER FragmentHeader
Definition: MbimInternal.h:80
MBIM_FRAGMENT_HEADER FragmentHeader
Definition: MbimInternal.h:89
struct MBIM_INDICATE_STATUS_MSG MBIM_INDICATE_STATUS_MSG
Definition: MbimInternal.h:77
uint32_t CommandType
Definition: MbimInternal.h:63
struct MBIM_CLOSE_DONE_MSG MBIM_CLOSE_DONE_MSG
MBIM_MESSAGE_HEADER MessageHeader
Definition: MbimInternal.h:59
Definition: MbimInternal.h:86
struct MBIM_MESSAGE_HEADER MBIM_MESSAGE_HEADER
Definition: MbimInternal.h:46
MBIM_FRAGMENT_HEADER FragmentHeader
Definition: MbimInternal.h:70
struct MBIM_COMMAND_DONE_MSG MBIM_COMMAND_DONE_MSG
struct MBIM_COMMAND_MSG MBIM_COMMAND_MSG
MBIM_MESSAGE_HEADER MessageHeader
Definition: MbimInternal.h:79
MBIM_FRAGMENT_HEADER FragmentHeader
Definition: MbimInternal.h:60
uint32_t MaxControlTransfer
Definition: MbimInternal.h:37
Definition: MbimInternal.h:28

Copyright (c) 2011-2015 Sierra Wireless, Inc. All rights reserved